Skip to content

aspose-cad-cloud/aspose-cad-cloud-ruby

Repository files navigation

Gem Gem

Aspose.CAD Cloud Ruby SDK

Aspose.CAD Cloud is a true REST API that enables you to perform a wide range of CAD and BIM drawings processing operations including manipulation, editing, export and conversion in a cloud, with zero initial costs.

This repository contains Aspose.CAD Cloud Ruby SDK source code which is written in Ruby. This SDK allows you to work with Aspose.CAD Cloud REST APIs in your Ruby applications quickly and easily, with zero initial cost and gain all benefits of strong types and IDE highlights.

CAD Processing Features

  • Export CAD drawings to other file formats.
  • Get image properties of a CAD drawing.
  • Change the scale of an AutoCAD sketch.
  • Flip and rotate a CAD image.
  • Upload or download CAD drawings to the cloud storage.
  • Copy, move, delete CAD files from the cloud storage.

Read & Write CAD Formats

DXF (R12/2007/2010)

Save CAD As

Fixed Layout: PDF (as a vector and as a raster) Images: BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF, WMF

Read CAD Formats

DWG (13, 14, 2000, 2004), DWG (2010, 2013, 2014), DWG (2015, 2017, 2018), DWT (13, 14, 2000, 2004), DWT (2010, 2013, 2014), DWT (2015, 2017, 2018), DWF, DGN v7, IGES (IGS), PLT, Industry Foundation Classes (IFC), STereoLithography (STL) Look at API Reference for full API specification.

For the complete list of use-cases, please refer to the format support document to see what you can achieve!

Detalied official documentation can be found at the following link.

Getting Started

  1. Sign Up. To use Aspose CAD Cloud Ruby SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, check Aspose Cloud Pricing.
  2. Minimum requirements. This SDK requires Ruby 2.3 or later.
  3. Install Aspose.CAD Cloud Ruby SDK The complete source code is available in this repository folder. You can either directly use it in your project via source code or get RubyGem (recommended). For more details, please visit our documentation website.

To install this package do the following: update your Gemfile

gem 'aspose_cad_cloud', '~> 20.11'

or install directly

gem install aspose_cad_cloud
  1. Using the SDK. The best way to become familiar with how to use the SDK is to read the Developer Guide. The Getting Started Guide will help you to become familiar with the common concepts.

Convert DWG to PDF in Ruby

    # Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).

	@config = Configuration.new
	@config.api_key['api_key'] = 'MY_CLIENT_SECRET'
	@config.api_key['app_sid'] = 'MY_CLIENT_ID'
	@api_client = ApiClient.new @config
	
	@CAD_api = CADApi.new @api_client
	
	AsposeApp.app_key_and_sid(@config.api_key['api_key'], @config.api_key['app_sid'])
	filename = 'sample.dwg'
	remote_name = filename
	output_format = 'pdf'
	dest_name = remote_test_out + remote_name + '.' + output_format

	st_request = UploadFileRequest.new remote_test_folder + remote_name, File.open(local_test_folder + filename, "r")
	@Cad_api.upload_file st_request

	request = PostDrawingSaveAsRequest.new File.open(local_test_folder + filename, "r"), output_format, remote_test_folder + filename, nil
	result = @Cad_api.post_drawing_save_as_with_http_info request

Tests contain various examples of using the SDK. Please put your credentials into Configuration.

Dependencies

  • Ruby 2.3 or later
  • referenced packages (check here for more details)

Licensing

All Aspose.CAD Cloud SDKs, helper scripts and templates are licensed under MIT License.

Aspose.CAD Cloud SDKs in Popular Languages

.NET Java PHP Python Ruby Node.js
GitHub GitHub GitHub GitHub GitHub GitHub
NuGet Maven Composer PIP GEM NPM

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial|

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published